add_executable(profile_trxboundaryparser profile_trxboundaryparser.cc)
target_link_libraries(profile_trxboundaryparser maxscale-common)

add_executable(test_gtid test_gtid.cc)
add_executable(test_parse_kill test_parse_kill.cc)
add_executable(test_setparser test_setparser.cc)
add_executable(test_setsqlmodeparser test_setsqlmodeparser.cc)
add_executable(test_sqlmodeparser test_sqlmodeparser.cc)

target_link_libraries(test_gtid maxscale-common)
target_link_libraries(test_parse_kill maxscale-common)
target_link_libraries(test_setsqlmodeparser maxscale-common)
target_link_libraries(test_setparser maxscale-common)
target_link_libraries(test_sqlmodeparser maxscale-common)

add_test(test_gtid test_gtid)
add_test(test_parse_kill test_parse_kill)
add_test(test_setparser test_setparser)
add_test(test_setsqlmodeparser test_setsqlmodeparser)
add_test(test_sqlmodeparser test_sqlmodeparser)

add_executable(test_host_pattern test_host_pattern.cc)
target_link_libraries(test_host_pattern maxscale-common)
add_test(test_host_pattern test_host_pattern)

add_executable(test_trxtracking test_trxtracking.cc)
target_link_libraries(test_trxtracking maxscale-common)
add_test(test_trxtracking test_trxtracking)

set(QC_TEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../parser_plugin/test)
add_executable(test_trxcompare test_trxcompare.cc ${QC_TEST_PATH}/testreader.cc)
target_link_libraries(test_trxcompare maxscale-common)
add_test(test_trxcompare_create test_trxcompare ${QC_TEST_PATH}/create.test)
add_test(test_trxcompare_delete test_trxcompare ${QC_TEST_PATH}/delete.test)
add_test(test_trxcompare_insert test_trxcompare ${QC_TEST_PATH}/insert.test)
add_test(test_trxcompare_join test_trxcompare ${QC_TEST_PATH}/join.test)
add_test(test_trxcompare_select test_trxcompare ${QC_TEST_PATH}/select.test)
add_test(test_trxcompare_set test_trxcompare ${QC_TEST_PATH}/set.test)
add_test(test_trxcompare_update test_trxcompare ${QC_TEST_PATH}/update.test)
add_test(test_trxcompare_maxscale test_trxcompare ${QC_TEST_PATH}/maxscale.test)
